﻿using System;
using System.Collections.Generic;
namespace Meeting.Model
{
    /// <summary>
    /// 投票表
    /// </summary>
    [Serializable]
    public partial class Vote
    {
        public Vote()
        { }
        #region Model
        private int _id;
        private string _theme = "";
        private int _category;
        private int _scoremin = 1;
        private int _scoremax = 10;
        private string _employeeid = "";
        private string _employeename = "";
        private string _employeetitle = "";
        private string _roleid = "";
        private DateTime _startdate = DateTime.Now;
        private DateTime _enddate = DateTime.Now;
        private DateTime _createdate = DateTime.Now;
        private string _comment = "";
        private bool _isactive = true;
        /// <summary>
        /// 
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 投票主题
        /// </summary>
        public string Theme
        {
            set { _theme = value; }
            get { return _theme; }
        }
        /// <summary>
        /// 投票类型（枚举：单选，多选，计分）
        /// </summary>
        public int Category
        {
            set { _category = value; }
            get { return _category; }
        }
        /// <summary>
        /// 最小分值
        /// </summary>
        public int ScoreMin
        {
            set { _scoremin = value; }
            get { return _scoremin; }
        }
        /// <summary>
        /// 最大分值
        /// </summary>
        public int ScoreMax
        {
            set { _scoremax = value; }
            get { return _scoremax; }
        }
        /// <summary>
        /// 创建人主键（对应政务系统用户帐号）
        /// </summary>
        public string EmployeeId
        {
            set { _employeeid = value; }
            get { return _employeeid; }
        }
        /// <summary>
        /// 创建人姓名（对应政务系统中文名称）
        /// </summary>
        public string EmployeeName
        {
            set { _employeename = value; }
            get { return _employeename; }
        }
        /// <summary>
        /// 职务
        /// </summary>
        public string EmployeeTitle
        {
            set { _employeetitle = value; }
            get { return _employeetitle; }
        }
        /// <summary>
        /// 用户角色Id
        /// </summary>
        public string RoleId
        {
            set { _roleid = value; }
            get { return _roleid; }
        }
        /// <summary>
        /// 发起时间
        /// </summary>
        public DateTime StartDate
        {
            set { _startdate = value; }
            get { return _startdate; }
        }
        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTime EndDate
        {
            set { _enddate = value; }
            get { return _enddate; }
        }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Comment
        {
            set { _comment = value; }
            get { return _comment; }
        }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsActive
        {
            set { _isactive = value; }
            get { return _isactive; }
        }
        #endregion Model



        #region 附加属性
        /// <summary>
        /// 投票的投票选项
        /// </summary>
        public List<VoteItem> Items
        {
            get;
            set;
        }

        /// <summary>
        /// 投票的参与分局
        /// </summary>
        public List<SubOffice> Offices
        {
            get;
            set;
        }

        /// <summary>
        /// 投票结果
        /// </summary>
        public List<VoteResult_Office> Results
        {
            get;
            set;
        }
        #endregion
    }
}

